package org.jeecg.modules.website.service;

import org.jeecg.modules.website.entity.WebTradeNotice;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.website.entity.WebWorkFile;


import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 交易信息公告表
 * @Author: jeecg-boot
 * @Date:   2024-07-17
 * @Version: V1.0
 */
public interface IWebTradeNoticeService extends IService<WebTradeNotice> {
    /**
     * 添加一对多
     *
     * @param webTradeNotice
     * @param webWorkFileList
     */
    public void saveMain(WebTradeNotice webTradeNotice, List<WebWorkFile> webWorkFileList) ;

    /**
     * 修改一对多
     *
     * @param webTradeNotice
     * @param webWorkFileList
     */
    public void updateMain(WebTradeNotice webTradeNotice,List<WebWorkFile> webWorkFileList);

    /**
     * 删除一对多
     *
     * @param id
     */
    public void delMain (String id);

    /**
     * 批量删除一对多
     *
     * @param idList
     */
    public void delBatchMain (Collection<? extends Serializable> idList);

    public String getDictDescByCategoryAndType(String category, String type);
    // public String determineDictCodeByCategory(String category) ;
}
